<?php

function isConnected()
{
  if ((!isset($_SESSION['isConnected'])) || (empty($_SESSION['isConnected'])) || $_SESSION['isConnected'] == 'false')
    {
      return (false);
    }
  else
    {
      return (true);
    }
}

function is_first_time()
{
  if (!isset($_SESSION['firsttime']) || $_SESSION['firsttime'] == 'true')
    {
      $_SESSION['firsttime'] = 'false';
      return (true);
    }
  return (false);
}

function disconnect()
{
  session_destroy();
}

?>